﻿using RSModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RSFrame.Services
{
    public interface IAccountService
    {
        /// <summary>
        /// 获取用户实例
        /// </summary>
        /// <param name="account">账号</param>
        /// <param name="password">密码</param>
        /// <returns>用户实例</returns>
        User GetUserInstance(int account, string password);

        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="account">账号</param>
        /// <param name="password">密码</param>
        /// <returns>若登陆成功，则返回用户实例；否则，返回null</returns>
        User Login(int account, string password);
    }
}
